package com.hq.zb.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-08
 */
@Data
@TableName("sys_code_rules_header")
public class CodeRulesHeader extends BaseModel<CodeRulesHeader> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "header_id", type = IdType.AUTO)
    private Integer headerId;
    /**
     * 编码规则CODE
     */
    @TableField("rule_code")
    private String ruleCode;
    /**
     * 名称
     */
    @TableField("rule_name")
    private String ruleName;
    /**
     * 描述
     */
    @TableField("description")
    private String description;
    /**
     * 启用标志
     */
    @TableField("enable_flag")
    private Boolean enableFlag;

    @Override
    protected Serializable pkVal() {
        return this.headerId;
    }
}
